<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="refresh" content="120"> 
		<!-- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no"> -->
		<title>虎扑跑步</title>
		<link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/base.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/mod.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/list.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/page.css" />
		<script type="text/javascript" charset="utf-8" src="{$socket_address}:{$socket_port}/socket.io/socket.io.js"></script>
		<script src="{$staticHost}/static/js/jquery-1.8.3.min.js"></script> 
		<script src="{$staticHost}/static/js/js.js"></script>
		<script src="{$staticHost}/static/js/mod.js"></script>
	</head>
	<body>
		<div class="bg-article">
			<section class="ewm-bg">
				<img src="{$staticHost}/static/images/share/logo-h.png"> 
				<div class="ewm">
					<img src="{$staticHost}/show/qrcode?code={$code}">
					用虎扑跑步APP扫描二维码<br/>在电脑上发长文！
					<p>
						还没开始跑步？
						<a class="color-blue" href="http://run.hupu.com/mobile">
						下载虎扑跑步APP
						</a>
						达人带你跑！
					</p>
				</div>
			</section> 
		</div>
    <script>

    
	    var auth_key = '{$auth_key}'
	    var auth_value2 = '{$auth_value2}'
	    var socket_address = '{$socket_address}'
	    var socket_port = '{$socket_port}'
        
        socket = io.connect(socket_address+':'+socket_port);

        socket.on('connect', function () {
            console.log('connect')
            socket.emit('login', {"auth_key": auth_key, "auth_value2": auth_value2});
        });

        socket.on('success', function(data) {
            window.location.href = '{$staticHost}/show/articleEditor?news_draft_id='+data.news_draft_id+'&auth_key='+auth_key+'&token='+data.token
        });
        



    </script>

	</body>
{template 'show/web-footer'}
